package com.mlc.data.dao;

import com.mlc.data.entity.Playlists;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @author FireWang
 * @date 2022/03/14 02:46:46
 */
public interface PlaylistsDao extends JpaRepository<Playlists, Integer>, JpaSpecificationExecutor {

    @Query("select id from Playlists where userId = ?1")
    Integer findIdByUserId(Integer userId);
}
